parameters: (
      *,
      response: Response,
      current_user: User = Depends(get_current_user),
      volume_name: str = Path(..., title="Volume Name to delete", example="Full-1742"),
  )
return_statement: return responseDict
docstring: Delete a volume from catalog using the _delete volume_ command.
docstring_summary: Delete a volume from catalog using the _delete volume_ command.
docstring_tokens: Delete a volume from catalog using the _delete volume_ command .
function: def delete_volume(
      *,
      response: Response,
      current_user: User = Depends(get_current_user),
      volume_name: str = Path(..., title="Volume Name to delete", example="Full-1742"),
  ):
      """
      Delete a volume from catalog using the _delete volume_ command.
      """
      responseDict = {}
      deleteCommand = "delete volume=%s yes" % volume_name
      try:
          responseDict = current_user.jsonDirector.call(deleteCommand)
      except Exception as e:
          response.status_code = 500
          return {
              "message": "Could not delete volume on director %s. Message: '%s'"
              % (CONFIG_DIRECTOR_NAME, e)
          }
      # Director delivers empty response
      response.status_code = 204
      return responseDict
function_tokens: def delete_volume ( * , response : Response , current_user : User = Depends ( get_current_user ) , volume_name : str = Path ( ... , title = "Volume Name to delete" , example = "Full-1742" ) , ) : responseDict = { } deleteCommand = "delete volume=%s yes" % volume_name try : responseDict = current_user . jsonDirector . call ( deleteCommand ) except Exception as e : response . status_code = 500 return { "message" : "Could not delete volume on director %s. Message: '%s'" % ( CONFIG_DIRECTOR_NAME , e ) } # Director delivers empty response response . status_code = 204 return responseDict