django_youtube/api.py
def delete_video(self, video_id):
        """
        Deletes the video

        Authentication is required

        Params:
            entry: video entry fetch via 'fetch_video()'

        Return:
            True if successful

        Raise:
            OperationError: on unsuccessful deletion
        """
        # Raise ApiError if not authenticated
        if not self.authenticated:
            raise ApiError(_("Authentication is required"))

        entry = self.fetch_video(video_id)
        response = Api.yt_service.DeleteVideoEntry(entry)

        if not response:
            raise OperationError(_("Cannot be deleted from Youtube"))

        return True
def delete_video(self, video_id):
        # Raise ApiError if not authenticated
        if not self.authenticated:
            raise ApiError(_("Authentication is required"))

        entry = self.fetch_video(video_id)
        response = Api.yt_service.DeleteVideoEntry(entry)

        if not response:
            raise OperationError(_("Cannot be deleted from Youtube"))

        return True
def delete_video ( self , video_id ) : # Raise ApiError if not authenticated if not self . authenticated : raise ApiError ( _ ( "Authentication is required" ) ) entry = self . fetch_video ( video_id ) response = Api . yt_service . DeleteVideoEntry ( entry ) if not response : raise OperationError ( _ ( "Cannot be deleted from Youtube" ) ) return True
Deletes the video

        Authentication is required

        Params:
            entry: video entry fetch via 'fetch_video()'

        Return:
            True if successful

        Raise:
            OperationError: on unsuccessful deletion
Deletes the video