parameters: (self, repo, card_name)
return_statement: return card.delete()
docstring: Deletes a card from a repo.
  
          Raises Card.DoesNotExist for invalid card_name.
          Raises PermissionDenied on insufficient privileges.
docstring_summary: Deletes a card from a repo.
docstring_tokens: Deletes a card from a repo .
function: def delete_card(self, repo, card_name):
          """
          Deletes a card from a repo.
  
          Raises Card.DoesNotExist for invalid card_name.
          Raises PermissionDenied on insufficient privileges.
          """
          DataHubManager.has_repo_file_privilege(
              self.username, self.repo_base, repo, 'write')
  
          card = Card.objects.get(repo_base=self.repo_base,
                                  repo_name=repo, card_name=card_name)
          return card.delete()
function_tokens: def delete_card ( self , repo , card_name ) : DataHubManager . has_repo_file_privilege ( self . username , self . repo_base , repo , 'write' ) card = Card . objects . get ( repo_base = self . repo_base , repo_name = repo , card_name = card_name ) return card . delete ( )