OpenML icon indicating copy to clipboard operation
OpenML copied to clipboard

Can't delete task and dataset (Task is not owned by you)

Open irfannurafif opened this issue 7 years ago • 8 comments

I would like to delete my uploaded dataset ( https://www.openml.org/d/41101 ) and task ( https://www.openml.org/t/168307 ) using https://www.openml.org/api_docs#!/task/delete_task_id . But I got the following response:

{
  "error": {
    "code": "453",
    "message": "Task is not owned by you"
  }
}

Even though I created the task. Hence, I can't delete the dataset too because it still has an active task.

irfannurafif avatar Jun 20 '18 16:06 irfannurafif

Did you pass your api key with the request?

On Wed, 20 Jun 2018 at 18:00 Irfan Nur Afif [email protected] wrote:

I would like to delete my uploaded dataset ( https://www.openml.org/d/41101 ) and task ( https://www.openml.org/t/168307 ) using https://www.openml.org/api_docs#!/task/delete_task_id . But I got the following response:

{ "error": { "code": "453", "message": "Task is not owned by you" } }

Even though I created the task. Hence, I can't delete the dataset too because it still has an active task.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openml/OpenML/issues/761, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpQV3zO9oyIme_Geb2mrXQIi3qg6w5gks5t-nGKgaJpZM4UvjfR .

-- Thank you, Joaquin

joaquinvanschoren avatar Jun 20 '18 18:06 joaquinvanschoren

Yes, I also pass my api key. Is it related to https://github.com/openml/OpenML/issues/692 ?

irfannurafif avatar Jun 20 '18 18:06 irfannurafif

Hi Irfan,

It seems that the task is created through the webform (not your fault)

The webform is outdated / buggy / should have been removed for ages.

Therefore, the task can not be programatically deleted.

janvanrijn avatar Jun 20 '18 19:06 janvanrijn

Yes, that form needs to be fixed urgently. Is there documentation on how to create a task with the Python API?

@Irfan: can you try removing the task again?

joaquinvanschoren avatar Jun 20 '18 19:06 joaquinvanschoren

@joaquinvanschoren Done. Task and dataset successfully deleted.

irfannurafif avatar Jun 20 '18 19:06 irfannurafif

Is there documentation on how to create a task with the Python API?

This feature is not implemented in python.

mfeurer avatar Jun 21 '18 07:06 mfeurer

I believe I'm hitting the same issue with dataset 42192. I managed to delete the associated run, but the task is not owned by me (likely because of creation in the webform).

romanlutz avatar Nov 15 '19 08:11 romanlutz

Hi @joaquinvanschoren,

I'm having similar issues when I tried deleting my dataset (https://www.openml.org/d/42676) using https://www.openml.org/api_docs#!/data/delete_data_id. The following is the response I received:

{
  "error": {
    "code": "354",
    "message": "Dataset is in use by other content. Can not be deleted"
  }
}

I'm assuming it's due to the dataset being associated with some existing tasks. I have tried deleting the tasks but stumbled upon the same issue as above.

{
 "error": {
   "code": "453",
   "message": "Task is not owned by you"
 }
}

I notice @janvanrijn mentioned that the webform is buggy, which is probably the reason for this issue (I uploaded/created the datasets and tasks via the webform, should've used the Python API instead!). Would there be any workaround or any step I could do to delete the datasets I created? Apologies in advance for this issue.

Thank you, Rizka

widyarini avatar Sep 20 '21 19:09 widyarini