src/traits/class-translate.php
private function translateDelete() { // @codingStandardsIgnoreLine
		$build = array( "delete from {$this->table}" );

		// Build the where statements.
		if ( ! empty( $this->statements['wheres'] ) ) {
			$build[] = join( ' ', $this->statements['wheres'] );
		}

		// Build offset and limit.
		if ( ! empty( $this->limit ) ) {
			$build[] = $this->limit;
		}

		return join( ' ', $build );
	}
private function translateDelete() { // @codingStandardsIgnoreLine
		$build = array( "delete from {$this->table}" );

		// Build the where statements.
		if ( ! empty( $this->statements['wheres'] ) ) {
			$build[] = join( ' ', $this->statements['wheres'] );
		}

		// Build offset and limit.
		if ( ! empty( $this->limit ) ) {
			$build[] = $this->limit;
		}

		return join( ' ', $build );
	}
Translate the current query to an SQL delete statement

@return string