'Delete a grid from your Plotly account.
Only one of `grid` or `grid_url` needs to be specified.
`grid` is a plotly.grid_objs.Grid object that has already
been uploaded to Plotly.
`grid_url` is the URL of the Plotly grid to delete
Usage example 1: Upload a grid to plotly, then delete it
from plotly.grid_objs import Grid, Column
import plotly.plotly as py
column_1 = Column([1, 2, 3], \'time\')
column_2 = Column([4, 2, 5], \'voltage\')
grid = Grid([column_1, column_2])
py.grid_ops.upload(grid, \'time vs voltage\')
# now delete it, and free up that filename
py.grid_ops.delete(grid)
Usage example 2: Delete a plotly grid by url
import plotly.plotly as py
grid_url = \'https://plot.ly/~chris/3\'
py.grid_ops.delete(grid_url=grid_url)'

@classmethod
def delete(cls, grid=None, grid_url=None):

    fid = parse_grid_id_args(grid, grid_url)
    grid_ops.ensure_uploaded(fid)
    v2.grids.trash(fid)
    v2.grids.permanent_delete(fid)
