public void delete_file_using_file_path(String filePath)
{
File file = new File(filePath);
boolean deleted = file.delete();
if(deleted == true)
{
Toast.makeText(context, filePath + " deleted sucessfully", Toast.LENGTH_LONG).show();
}
}
通过这个我可以删除视频文件。