cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cpoole2256
Community Participant

Problem Deleting File in Course Through API

Hello Canvas Developers,

I'm attempting to delete a file in a course via the API. My request currently looks like this:

https://canvas_url/api/v1/courses/course_id/files/file_id?access_token=myaccesstoken

I sent this via a DELETE command and got back a 422 error which according to google means "The server understands the request that I am making, the syntax is correct, but the server is unable to process the request".

-Christopher Poole

Labels (1)
Tags (4)
0 Kudos
1 Reply
pklove
Community Champion

Have you tried with the Files delete endpoint (Files - Canvas LMS REST API Documentation😞

      DELETE /api/v1/files/:id