Showing results for 
Show  only  | Search instead for 
Did you mean: 
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:


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
Community Champion

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

      DELETE /api/v1/files/:id